{if $type=='index'&&$page=='1'}
<title>{$name}-{$title}</title>
{else}
<title>{$title}-{$name}</title>
{/if}
{php}
        if($type=='index'){
                $keywords = $zbp->Config('Tctitleseo')->title_keywords;
                $description = $zbp->Config('Tctitleseo')->title_description;
        }elseif($type=='category'){
                $keywords = $category->Name;
                $description = $category->Intro;
        }elseif($type=='article'||$type=='page'){
                $aryTags = array();
                foreach($article->Tags as $key){
                        $aryTags[] = $key->Name;
                }
                if(count($aryTags)>0) $keywords = implode(',',$aryTags);
                $description = preg_replace('/[\r\n\s]+/', '', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),100)).'...');
        }
{/php}
{if isset($keywords)&&strlen($keywords)>0}
<meta name="keywords" content="{$keywords}" />
{/if}
{if isset($description)&&strlen($description)>0}
<meta name="description" content="{$description}" />
{/if}